package com.twu.biblioteca.controller;

/**
 * Created by ggoulart on 9/29/14.
 */
public class Movie {

    private String name;
    private int year;
    private String director;
    private double rating;

    public Movie(String name, int year, String director, double rating) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public String getName() {
        return name;
    }

    public int getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public double getRating() {
        return rating;
    }

    public String movieDetails() {
        return "Name: " + name + " Year: " + year + " Director: " + director + " Rating: " + rating;
    }
}
